
package cn.com.pusai.common.model;

import java.util.ArrayList;
import java.util.List;

public class WebInfo
{

	public static final String STATUS_SUCCESS = "success";
	public static final String STATUS_FAILURE = "failure";
	private List errorList;
	private List infoList;
	private String actionStatus;

	public WebInfo()
	{
		errorList = new ArrayList();
		infoList = new ArrayList();
	}

	public void addError(String error)
	{
		errorList.add(error);
	}

	public void addInfo(String info)
	{
		infoList.add(info);
	}

	public void setActionStatus(String actionStatus)
	{
		this.actionStatus = actionStatus;
	}

	public List getErrorList()
	{
		return errorList;
	}

	public void setErrorList(List errorList)
	{
		this.errorList = errorList;
	}

	public List getInfoList()
	{
		return infoList;
	}

	public void setInfoList(List infoList)
	{
		this.infoList = infoList;
	}

	public String getActionStatus()
	{
		return actionStatus;
	}
}
